package com.neutech.solar.entity;

import com.neutech.solar.util.ImageUtil;

import java.awt.*;

/**
 * @author 小李要吃鱼
 * @date 2021-01-26 13:07
 */
public class Background extends AbstractSolarSystemObject{


    public  Background(){
        this.x = 0;
        this.y = 0;
        this.img = ImageUtil.getImage("bg.jpg");


    }

    public Background(String imageName){
        this.x=0;
        this.y=0;
        this.img= ImageUtil.getImage(imageName);

    }
    public void draw(Graphics g) {
        g.drawImage(img,x,y,null);

    }

}
